ms();
setInterval(ms,1000)

function ms(){

    var nowTime=new Date()
    // console.log(nowTime)
    
    var startTime=new Date('2021/05/30 23:00:00')
    // console.log(startTime.getTime()-nowTime.getTime())
    
    //场次
    var round=startTime.getHours();
    // console.log(round)
    $('#round').html(round+':00 场')


    var time=startTime-nowTime;
    time=parseInt(time/1000);//变成秒数

    var hour=parseInt(time/(60*60));
    if(hour<10){
        hour="0"+hour
    }
    time=time-hour*(60*60)


    var min=parseInt(time/60);
    if(min<10){
        min="0"+min
    }
    time=time-min*60;

    var second=parseInt(time);
    if(second<10){
        second="0"+second
    }

    $('.seckill-con .goods .title .time span:nth-of-type(1)').html(hour)
    $('.seckill-con .goods .title .time span:nth-of-type(2)').html(min)
    $('.seckill-con .goods .title .time span:nth-of-type(3)').html(second)

}
$('.recommend-con .tab-content ul li').click(function(){
	$(location).attr('href','dateils.html')
})